<template>
  <div class="pickerTitleHeaderContainer">
    <div class="container">
      <div class="btncontainer" @click="cancel">
        <span class="btn">{{ this.$i18n.t('common.cancel') }}</span>
      </div>
      <div class="dividerContainer">
        <div class="divider"></div>
      </div>
      <div class="btncontainer" @click="confirm">
        <span class="btn">{{ this.$i18n.t('common.confirm') }}</span>
      </div>
    </div>
  </div>
</template>

<script>
// TODO： 支持自定义的render渲染
// import textRender from './render'
export default {
  methods: {
    cancel() {
      this.$emit('clickCancel');
    },
    confirm() {
      this.$emit('clickConfirm');
    }
  }
}
</script>

<style scoped>
.pickerTitleHeaderContainer {
  height: 56px;
  line-height: 56px;
  display: flex;
  position: relative;
  flex-direction: row;
  /* background: rgba(0, 255, 0, 0.5); */
}

.pickerTitleHeaderContainer .container {
  display: flex;
  margin-left: 24px;
  margin-right: 24px;
  flex: 1;
  flex-direction: row;
}

.btncontainer {
  height: 40px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background: rgba(0, 255, 255, 0.5); */
}

.btn {
  color: var(--current-second-title-select-color);
  font-size: 16px;
  font-weight: 400;
  background-color: transparent;
}

.dividerContainer {
  height: 40px;
  width: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.divider {
  height: 24px;
  width: 0.25px;
  background: var(--current-divider-line-color);
}
</style>
